package cn.wanghaomiao.model;

import java.util.List;

import cn.wanghaomiao.seimi.annotation.Xpath;

/**
 * Xpath语法可以参考 http://jsoupxpath.wanghaomiao.cn/
 * 
 * @author 汪浩淼 et.tw@163.com
 * @since 2015/10/27.
 * @mod dairymix@126.com
 */
public class HouseInfo_ganji {

    @Xpath("//h1[@class='title-name']/allText()")
    private String title;// 标题
    
    @Xpath("//span[text()*='房源售价']/parent::*/b[@class='basic-info-price']/text()|//span[text()*='房源售价']/parent::*/text()")
    private List<String> priceInfo;// 房源售价信息串
    
    private String price;//房源售价

    @Xpath("//span[text()*='户型面积']/parent::*/text()")
    private String houseType;// 户型面积

    @Xpath("//span[text()*='房屋概况']/parent::*/text()")
    private String survey;// 房屋概况

    @Xpath("//span[text()*='所在楼层']/parent::*/text()")
    private String houseFloor;// 所在楼层

    @Xpath("//span[text()*='所在小区']/following-sibling::*/allText()")
    private String area;// 所在小区

    @Xpath("//span[text()*='所在区域']/parent::*/allText()")
    private String region;// 所在区域

    @Xpath("//span[text()*='地址']/parent::*/text()")
    private String address;// 地址

    @Xpath("//div[@class='basic-info-contact']/div[1]/span[1]/i[1]/text()")
    private String contacter;// 联系人

    @Xpath("//*[@id='contact-phone']/span[2]/allText()")
    private String phoneNumber;// 联系方式

    @Xpath("//*[@id='js-summary']/div[1]/allText()")
    private String description;// 房源描述

    private String href;// 源地址

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<String> getPriceInfo() {
        return priceInfo;
    }

    public void setPriceInfo(List<String> priceInfo) {
        this.priceInfo = priceInfo;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    public String getSurvey() {
        return survey;
    }

    public void setSurvey(String survey) {
        this.survey = survey;
    }

    public String getHouseFloor() {
        return houseFloor;
    }

    public void setHouseFloor(String houseFloor) {
        this.houseFloor = houseFloor;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContacter() {
        return contacter;
    }

    public void setContacter(String contacter) {
        this.contacter = contacter;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

}
